from django.db import models

# Create your models here.
class Member(models.Model):
    name = models.CharField(
        blank=False, max_length=64, verbose_name="成员姓名", unique=False)
    title = models.CharField(
        blank=False, max_length=64, verbose_name="职务", unique=False)
    school = models.CharField(
        blank=False, max_length=64, verbose_name="单位", unique=False)
    identity = models.CharField(
        blank=False, max_length=64, verbose_name="身份", unique=False, default="常务委员")
    photo = models.CharField(
        blank=True, max_length=64, verbose_name="照片", unique=False)

    def __str__(self):
        return self.name

    class Meta:
        verbose_name = "成员信息"
        verbose_name_plural = "成员信息"